package cn.itsource.pethome.base.util;

import java.util.ArrayList;
import java.util.List;

/**  
* @Title: PageBean.java
* @Package:cn.itsource.util
* @Description:(作用   将totals和data封装进来，好处是返回值方便，不在用Map返回totals和data了，这两个属性值不好记)
*/

public class PageBean<T> {
	private Integer totals = 0;
	private List<T> data = new ArrayList<>();

	public PageBean() {
		super();
	}
	public PageBean(Integer totals, List<T> data) {
		super();
		this.totals = totals;
		this.data = data;
	}
	public Integer getTotals() {
		return totals;
	}
	public void setTotals(Integer totals) {
		this.totals = totals;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return "PageBean [totals=" + totals + ", data=" + data + "]";
	}
	
	
}
